package com.spring.demo1.aliasfor.factory;

import org.springframework.core.annotation.AliasFor;

import java.lang.annotation.*;

/**
 * AliasFor的描述
 *
 * @author vhans
 */
@Documented
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface MyAliasFor {

    @AliasFor("attribute")
    String value() default "";

    @AliasFor("value")
    String attribute() default "";

    Class<? extends Annotation> annotation() default Annotation.class;
}
